package com.ccb.sc.common.modules.shopkeeper.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.shopkeeper.enums.WithdrawStatus;
import com.ccb.sc.common.modules.shopkeeper.enums.WithdrawType;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 店主提现记录
 * </p>
 *
 * @author ken
 * @since 2023-02-12
 */
@Getter
@Setter
@TableName("tb_shopkeeper_withdraw")
public class ShopkeeperWithdraw extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 店主id
     */
    @TableField("shopkeeper_id")
    private Long shopkeeperId;

    /**
     * 提现金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 提现阳光值
     */
    @TableField("points")
    private BigDecimal points;

    /**
     * 提现类型 0支付宝 1银行卡
     */
    @TableField("withdraw_type")
    private WithdrawType withdrawType;

    /**
     * 提现账号
     */
    @TableField("account")
    private String account;

    /**
     * 审核意见
     */
    @TableField("audit_comment")
    private String auditComment;

    /**
     * 审核时间
     */
    @TableField("audit_time")
    private LocalDateTime auditTime;

    /**
     * 提现状态 0待审核 1人工审核成功 2自动打款成功 3审核拒绝
     */
    @TableField("status")
    private WithdrawStatus status;


}
